<?php
include "/root/mylesson/opcode_def.php";

$fp = fopen("/tmp/php.log","r");
if($fp){
    while(!feof($fp))
    {
    	$line = fgets($fp);
	$line = str_replace("opcode:","",$line);
	$line = str_replace("zend_opcode_handlers_index:","",$line);
	$code = explode(",",$line);
        if( isset($code[0]) && isset($code[1]) )
        { 
            printf("%-5d%-20s", intval($code[0]) , $op_code[intval($code[0])]);
            printf("%-40s\n" , $opcode_handler_t[intval($code[1])]); 
        } 
    }
    echo "\n";
}

